﻿@{
    ViewBag.Title = "PrinterBudi.NET";
}

<h2>PrinterBudi.NET</h2>

@if (Session["userId"] != null)
{
    <div style="width: 300px">
        <div style="background: #abcedd; text-align:center">Welcome</div>
        <div style="width: inherit">
            <div style="float:left; background: #aabbff; width: 150px">@ViewBag.completeName</div>
            <div style="background: #ddeeff; width: 100px">@ViewBag.phNumber</div>
        </div>
    </div>
}

<ul>
    @if (Session["userId"] != null)
    {
        <li><a href="@Href("/Home", "Upload")">Upload</a></li>
        <li><a href="@Href("/Home", "Profile")">Change Settings</a></li>
        <li><a href="@Href("/Home", "Logout")">Logout</a></li>
    }
    else
    {
    <li><a href="@Href("/Home", "Login")">Login</a></li>
    <li><a href="@Href("/Home", "Register")">Register</a></li>
    }
</ul>